<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="{:url()}" data-auto="true" method="post">
    <input type="hidden" name="gid" value='{$group.id|default=""}'>
    <input type="hidden" name="id" value='{$vo.id|default=""}'>

    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input type="text" name="mobile" value="{$vo.mobile|default=''}" required="required" title="请输入手机号" placeholder="请输入手机号" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">用户姓名</label>
        <div class="layui-input-block">
            <input type="text" name="user_name" value="{$vo.user_name|default=''}" required="required" title="请输入用户姓名" placeholder="请输入用户姓名" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">身份证</label>
        <div class="layui-input-block">
            <input type="text" name="exam_indentity"  value="{$vo.exam_indentity|default=''}" required="required" title="请输入用户身份证" placeholder="请输入用户身份证" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block" style="width: 34rem;">
        <select required class="layui-select" name="gender">
            <option value="1" {if isset($vo.sex) and (1 == $vo.sex)}selected{/if}>男</option>
            <option value="2" {if isset($vo.sex) and (2 == $vo.sex)}selected{/if}>女</option>
        </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">出生日期</label>
        <div class="layui-input-block">
            <input type="text" name="birthday" value="{$vo.birthday|default=''}" required="required" title="请输入用户出生日期" placeholder="请输入用户出生日期" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">婚姻状况</label>
        <div class="layui-input-block" style="width: 34rem;">
            <select required class="layui-select" name="married">
                <option value="1" {if isset($vo.married) and (1 == $vo.married)}selected{/if}>未婚</option>
                <option value="2" {if isset($vo.married) and (2 == $vo.married)}selected{/if}>已婚</option>
                <option value="3" {if isset($vo.married) and (3 == $vo.married)}selected{/if}>离异</option>
            </select>
        </div>
    </div>
    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>

<script>
    (function () {
        window.form.render();
    })();

    $(function () {
        date = new Date();
        layui.use('laydate', function(){
            var laydate = layui.laydate;

            laydate.render({
                elem: '#start_date',
                min: 'date',
            });

            laydate.render({
                elem: '#end_date',
                min: 'date',
            });
        });
    });
</script>
